# _*_ coding utf-8 _*_
# george
# time: 2025/1/14下午6:37
# name: project.py
# comment:
from flask import Blueprint, redirect,render_template
import logging
from model.project import Project
from app.settings import login_required

project_logger = logging.getLogger("project的controller:")

project = Blueprint("project", __name__)


@project.route("/project")
@login_required
def get_project():
    result = Project().search_project()
    if not result:
        return "当前无专案"
    return render_template("project.html",result=result)
